package com.example.studyplanning.servicesImpl;

import com.example.studyplanning.entity.Admin;
import com.example.studyplanning.mapper.AdminMapper;
import com.example.studyplanning.services.AdminServices;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServicesImpl implements AdminServices {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin SelectByAdmin(@Param("adminName") String adminName, @Param("adminPassword") String adminPassword) {
        return adminMapper.SelectByAdmin(adminName,adminPassword);
    }

    @Override
    public Integer UpdateAdmin(Admin admin) {
        return adminMapper.UpdateAdmin(admin);
    }
}
